<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="/css/common/add2.css"/>
<link rel="stylesheet" href="/css/common/list.css"/>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.1.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/layer-v1.9.2/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/common/common.js"></script>
<script type="text/javascript" src="${ctx}/js/person/edit.js"></script>
<#--<link rel="stylesheet" href="${ctx}/plugin/combo/select/css/combo.select.css" type="text/css"/>-->
<script type="text/javascript" src="${ctx}/plugin/My97DatePicker/WdatePicker.js"></script>
<body>
<div>

        <form id="form" name="form" class="form-horizontal" method="post"
              action="/personManage/editPerson"
              enctype="multipart/form-data">
        <#--<input id="dataUrl" value="${dataUrl}" type="hidden"/>-->
            <section class="">
                <div class="form-layer-group clearfix">
                    <input type="hidden" id="dataUrl" value="${dataUrl}"/>
                    <input type="hidden" id="corpId" value="${corpId}"/>
                    <input name="personId" type="hidden" value="${personDetails.id}"/>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">姓名：</label>
                        <input name="name"
                               placeholder="请输入姓名" value="${personDetails.name!""}"
                               class="input-medium form-control m-b" id="name" disabled/>

                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">登录名：</label>
                        <input name="loginid"
                               placeholder="请输入用户名"
                               class="input-medium form-control m-b" value="${personDetails.loginid!""}" id="loginid"/>
                        <input  type="hidden"
                                value="${personDetails.loginid!""}" id="loginidOld"/>
                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">密码：</label>
                        <input type="text" name="password"
                               placeholder="请输入密码" value="${personDetails.password!""}"
                               class="input-medium form-control m-b" id="password"
                        />
                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">手机号：</label>
                        <input name="phone"
                               placeholder="请输入手机号" value="${personDetails.phone!""}"
                               class="input-medium form-control m-b" id="phone"/>
                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">是否停用：</label>
                        <select name="isLock" class="input-medium form-control m-b" style="text-align: center">
                            <option value="0"<#if personDetails.whetherLock == '0'> selected="selected"</#if>>否</option>
                            <#--whetherLock-->
                            <option value="1"<#if personDetails.whetherLock == '1'> selected="selected"</#if>>是</option>
                        </select>
                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">开始时间：</label>
                    <#--<input type="text" class="input-medium form-control m-b" id="startTime" value=""/> "-->
                        <input class="enabledtime input-medium form-control" name="startTime" id="startTime"
                               placeholder="开始时间" value="<#if personDetails.startTime??>${personDetails.startTime?string('yyyy-MM-dd hh:mm:ss')}</#if>"
                               onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'endTime\')}'})"/>
                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">结束时间：</label>
                    <#--<input type="text" class="input-medium form-control m-b" id="endTime" value=""/>-->
                        <input class="enabledtime input-medium form-control" name="endTime" id="endTime"
                               placeholder="结束时间"
                               value="<#if personDetails.endTime??>${personDetails.endTime?string('yyyy-MM-dd hh:mm:ss')}</#if>"
                               onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'startTime\')}'})"/>
                    </div>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">注册时间：</label>
                    <#--<input type="text" class="input-medium form-control m-b" id="endTime" value=""/>-->
                        <input class="enabledtime input-medium form-control" name="addTime" id="addTime" disabled
                               placeholder="注册时间"  value="<#if personDetails.addTime??>${personDetails.addTime?string('yyyy-MM-dd hh:mm:ss')}</#if>"
                               onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </div>
                    <input type="hidden" id="personPostId" value="${personDetails.postId?c}"/>
                    <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">所属角色：</label>
                        <select name="postId" id="personPost" class="input-medium form-control m-b" style="text-align: center">

                        </select>
                    </div>
                  <#--  <div class="form-group-div form-layer-input clearfix">
                        <label class="control-label">所属单位：</label>
                        <span class="input-medium-span form-control m-b">${corpName}</span>
                    </div>-->
                    <div style="text-align: center;padding:12px 0px">
                        <button type="button" class="cancel btn btn-cancel">取消</button>
                        <button type="submit" id="submitButton" class="btn btn-main">确定</button>
                    </div>
                </div>
            </section>
        </form>
</div>
</body>
</html>
